import os.path
from configs.settings import *

from utils.ai_translator.translator.pdf_parser import *
from utils.ai_translator.translator.pdf_translator import *
from utils.ai_translator.model.glm_model import *

model_name = MODEL_SETTINGS.get("model")
api_key = MODEL_SETTINGS.get("api_key")


def test_case():
    pdf_parser_obj = PDFParser()
    dir_name = os.path.dirname(__file__)

    pdf_file_path = os.path.join(os.path.dirname(dir_name), "files", "test.pdf")

    pdf_parser_obj.parse_pdf(pdf_file_path)


if __name__ == '__main__':
    test_case()
